#include "mainpartaddressgetter.h"
#include <QString>

using namespace ExecTerminalImplNS;

QString MainPartAddressGetter::getMainPartOfAddress(QString address)
{
    const int queryMarkIndex = address.indexOf("?");
    if (queryMarkIndex == -1)
    {
        return address;
    }
    return address.remove(queryMarkIndex, address.size() - queryMarkIndex);
}

